"use strict";
module.exports = function (sequelize, DataTypes) {
    var AngleDeviceResult = sequelize.define("AngleDeviceResult", {
        configId: {
            type: DataTypes.INTEGER,
            field: 'ConfigId'
        },
        deviceId: {
            type: DataTypes.INTEGER,
            field: 'DeviceId'
        },
        id: {
            type: DataTypes.INTEGER,
            field: 'Id',
            autoIncrement: true,
            primaryKey: true
        },
        x: {
            type: DataTypes.DOUBLE,
            field: 'X'
        },
        y: {
            type: DataTypes.DOUBLE,
            field: 'Y'
        },
        date: {
            type: DataTypes.DATE,
            field: 'Date'
        },
        t: {
            type: DataTypes.DOUBLE,
            field: 'T'
        }
    }, {
            freezeTableName: true,
            timestamps: false,
            classMethods: {
                associate: function (models) {

                }
            }
        });

    return AngleDeviceResult;
}